home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Attributes / HasVerticalJustification.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  509 b   |  26 lines  |  [TEXT/CWIE]

  1. // HasVerticalJustification.h
  2.  
  3. #ifndef HasVerticalJustification_h
  4. #define HasVerticalJustification_h
  5.  
  6. class Justification;
  7.  
  8. class HasVerticalJustification
  9.   {
  10.     private:
  11.         const Justification *vertical;
  12.     
  13.     protected:
  14.         virtual void VerticalJustificationChanged() = 0;
  15.         
  16.     public:
  17.         HasVerticalJustification( const Justification& j )
  18.           : vertical( &j )
  19.           {}
  20.         
  21.         const Justification& VerticalJustification() const        { return *vertical; }
  22.         void SetVerticalJustification( const Justification& );
  23.   };
  24.  
  25. #endif
  26.